import { BaseCommand } from '@amcax/base';
import { ctx2 } from '../../../../module';

const fitView = async () => {
  ctx2.viewer.sceneSetup.fit2DView();
};

export const cmdFit2DView: BaseCommand = {
  id: 'cmdFit2DView',
  icon: 'commands/airfoil/fit-screen',
  label: 'command.fitView',
  noHighlight: true,
  invoke: fitView,
  standalone: true,
};
